package June;

public class Test07Static01ClassTest {
    public static void main(String[] args) {
        Test07Static01Class stu1=new Test07Static01Class("张三");
        Test07Static01Class stu2=new Test07Static01Class("李四");
        Test07Static01Class stu3=new Test07Static01Class("赵六");
        //直接使用类名调用这个属性
        Test07Static01Class.teacher="老刘";

        String s = stu3.getTeacher();
        System.out.println("你好"+s);


        stu1.show();
        stu2.show();
        stu3.show();

    }
}
